Logistic regression analysis in R